package com.icetech.eom.domain.tx;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author wangzw
 * @since 2018-11-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName(value = "tx_session")
@ApiModel(value="Session对象", description="")
public class Session implements Serializable {

    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "主键")
    @TableId(type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "设备唯一编号")
    @TableField("DevGuid")
    private String guid;

    @ApiModelProperty(value = "连接开始时间")
    @TableField("BeginTime")
    private Date beginTime;

    @ApiModelProperty(value = "连接截止时间")
    @TableField("EndTime")
    private Date endTime;

    @ApiModelProperty(value = "会话连接成功")
    @TableField("Success")
    private Integer success;

    @ApiModelProperty(value = "打洞类型")
    @TableField("Type")
    private Integer type;

    @ApiModelProperty(value = "C端IP")
    @TableField("ClientIP")
    private String clientIp;

    @ApiModelProperty(value = "设备端IP")
    @TableField("DevIP")
    private String devIp;

    @ApiModelProperty(value = "C端唯一标示")
    @TableField("ClientGuid")
    private String clientGuid;

    @ApiModelProperty(value = "会话ID")
    @TableField("ClientSessionID")
    private Long clientSessionId;

    @ApiModelProperty(value = "会话结束时间")
    @TableField("SessionEndTime")
    private Date sessionEndTime;

    @ApiModelProperty(value = "用户id")
    @TableField("userid")
    private Long userId;

    @ApiModelProperty(value = "用户名称")
    @TableField("uname")
    private String userName;
}
